package com.mazaiting.mail.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mazaiting.common.core.ex.exceptions.BaseException;
import com.mazaiting.mail.domain.entity.MsgEmailSend;
import com.mazaiting.mail.dto.MailAlarmDTO;

/**
 * 邮件消息发送表 服务类
 *
 * @author 党海亮
 * @since 2022-04-16
 */
public interface IMsgEmailSendService extends IService<MsgEmailSend> {

    /**
     * 预警邮件
     * @param mailAlarmDTO 预警邮件
     * @return true: 邮件发送成功; false: 邮件发送失败
     */
    boolean alarm(MailAlarmDTO mailAlarmDTO) throws BaseException;
}
